package com.ruoyi.project.data.proc.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.project.data.proc.domain.DsTrDateProcState;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.data.proc.mapper.DsTrDateProcStateMapper;
import com.ruoyi.project.data.proc.service.IDsTrDateProcStateService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 交易日处理查询Service业务层处理
 *
 * @author 魏刚
 * @date 2020-03-15
 */
@Service
public class DsTrDateProcStateServiceImpl extends ServiceImpl<DsTrDateProcStateMapper, DsTrDateProcState> implements IDsTrDateProcStateService
{
    @Autowired
    private DsTrDateProcStateMapper dsTrDateProcStateMapper;

    /**
     * 查询交易日处理查询
     *
     * @param id 交易日处理查询ID
     * @return 交易日处理查询
     */
    @Override
    public DsTrDateProcState selectDsTrDateProcStateById(String id)
    {
        return dsTrDateProcStateMapper.selectDsTrDateProcStateById(id);
    }

    /**
     * 查询交易日处理查询列表
     *
     * @param wsTrDateProcState 交易日处理查询
     * @return 交易日处理查询
     */
    @Override
    public List<DsTrDateProcState> selectDsTrDateProcStateList(DsTrDateProcState wsTrDateProcState)
    {
        return dsTrDateProcStateMapper.selectDsTrDateProcStateList(wsTrDateProcState);
    }

    /**
     * 新增交易日处理查询
     *
     * @param wsTrDateProcState 交易日处理查询
     * @return 结果
     */
    @Override
    public int insertDsTrDateProcState(DsTrDateProcState wsTrDateProcState)
    {
        return dsTrDateProcStateMapper.insertDsTrDateProcState(wsTrDateProcState);
    }

    /**
     * 修改交易日处理查询
     *
     * @param wsTrDateProcState 交易日处理查询
     * @return 结果
     */
    @Override
    public int updateDsTrDateProcState(DsTrDateProcState wsTrDateProcState)
    {
        return dsTrDateProcStateMapper.updateDsTrDateProcState(wsTrDateProcState);
    }

    /**
     * 删除交易日处理查询对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDsTrDateProcStateByIds(String ids)
    {
        return dsTrDateProcStateMapper.deleteDsTrDateProcStateByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除交易日处理查询信息
     *
     * @param id 交易日处理查询ID
     * @return 结果
     */
    @Override
    public int deleteDsTrDateProcStateById(String id)
    {
        return dsTrDateProcStateMapper.deleteDsTrDateProcStateById(id);
    }
}
